#ifndef __PLAYER_H_
#define __PLAYER_H_

#include "prop.h"
#include "Scene.h"
#include <DynamicArray.h>
#include <MyString.h>
struct Player
{
    int HP;
    int MAXHP;
    int ATK;
    int x;
    int y;
    char symbol[10]; 
    int exp;
    int level;
    int golden;
    int DEF;
    weapon *wpn;
    medicament *med;
    defence *def;
    //背包系统
    DArray bag;
};
typedef struct Player player;

void InitPlayer(player *p);
void PrintPlayer(player *p);
void PlayerMove(player *p,DArray *ms,char *(*map)[MAPSZIE]);
void LevelUp(player *p);
void LoadGame(player *p,DArray *m,char *(*map)[MAPSZIE]);
void WriteToGame(player *p,DArray *m,char *(*map)[MAPSZIE],MyStrList content);

void ShopInterFace(player *p);
void ShowBag(player *p);

MyStr PlayerToString(player *p);


#endif